<?php /* Smarty version Smarty-3.1.18, created on 2017-06-15 15:16:44
         compiled from "/data/www/mystery/protected/modules/webadmin/views/netquestion/history.tpl" */ ?>
<?php /*%%SmartyHeaderCode:29661721552e6e8bc4fcc9-42492206%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '5b60f998c8b2e44bc3255a43b2983629a53c4f03' => 
    array (
      0 => '/data/www/mystery/protected/modules/webadmin/views/netquestion/history.tpl',
      1 => 1494904921,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '29661721552e6e8bc4fcc9-42492206',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.18',
  'unifunc' => 'content_552e6e8bd04fb0_45955721',
  'variables' => 
  array (
    'list' => 0,
    'val' => 0,
    'level' => 0,
    'managelist' => 0,
    'v' => 0,
    'nq_id' => 0,
    'subject_id' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_552e6e8bd04fb0_45955721')) {function content_552e6e8bd04fb0_45955721($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ("../common/iframe_header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>


<table class="gridtable table table-bordered">
    <tr>
        <th width="20%">操作用户</th>
        <th width="5%">等级</th>
        <th width="10%">对标情况</th>
        <th width="35%">申诉意见</th>
        <th width="25%">操作时间</th>
        <th width="5%">附件</th>
    </tr>
    <?php  $_smarty_tpl->tpl_vars['val'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['val']->_loop = false;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['val']->key => $_smarty_tpl->tpl_vars['val']->value) {
$_smarty_tpl->tpl_vars['val']->_loop = true;
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['val']->key;
?>
    <!--网点上下级操作列表-->
    <tr id="qb_<?php echo $_smarty_tpl->tpl_vars['val']->value['qb_id'];?>
">
        <td><?php echo $_smarty_tpl->tpl_vars['val']->value['network_name'];?>
</td>
        <td><?php if ($_smarty_tpl->tpl_vars['level']->value[$_smarty_tpl->tpl_vars['val']->value['level']]) {?><?php echo $_smarty_tpl->tpl_vars['level']->value[$_smarty_tpl->tpl_vars['val']->value['level']]['desc'];?>
<?php } else { ?><?php }?></td>
        <?php if ($_smarty_tpl->tpl_vars['val']->value['is_self']==1) {?>
        <td><?php if ($_smarty_tpl->tpl_vars['val']->value['isreturn']==1) {?>申请还分<?php } elseif ($_smarty_tpl->tpl_vars['val']->value['isreturn']==0) {?>不申请<?php } else { ?>未知<?php }?></td>
        <td style="word-wrap:break-word;word-break:break-all;line-height: 20px" title="<?php echo $_smarty_tpl->tpl_vars['val']->value['suggestion'];?>
"><?php echo msubstr($_smarty_tpl->tpl_vars['val']->value['suggestion'],50);?>
</td>
        <?php } else { ?>
            <td colspan="2" style="word-wrap:break-word;word-break:break-all;line-height: 20px"  title="<?php echo $_smarty_tpl->tpl_vars['val']->value['suggestion'];?>
"><?php echo msubstr($_smarty_tpl->tpl_vars['val']->value['suggestion'],70);?>
</td>
        <?php }?>
        <td><?php echo $_smarty_tpl->tpl_vars['val']->value['create_time'];?>
</td>
        <td><?php if ($_smarty_tpl->tpl_vars['val']->value['haveattach']) {?><a href="/webadmin/netQuestion/historyattach?nq_id=<?php echo $_smarty_tpl->tpl_vars['val']->value['nq_id'];?>
&subject_id=<?php echo $_smarty_tpl->tpl_vars['val']->value['subject_id'];?>
" target="_blank">查看</a><?php }?></td>
    </tr>
    <?php } ?>
        <!-- 后台审核列表-->
    <?php if ($_smarty_tpl->tpl_vars['managelist']->value) {?>
    <?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['managelist']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value) {
$_smarty_tpl->tpl_vars['v']->_loop = true;
 $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['v']->key;
?>
    <tr style="background: #529EC6;">
        <td colspan="2"><?php echo $_smarty_tpl->tpl_vars['v']->value['truename'];?>
</td>
        <td><?php if ($_smarty_tpl->tpl_vars['v']->value['isreturn']>=0) {?>还<?php echo $_smarty_tpl->tpl_vars['v']->value['isreturn'];?>
分<?php } else { ?>不还分<?php }?></td>
        <td><?php echo $_smarty_tpl->tpl_vars['v']->value['suggestion'];?>
</td>
        <td><?php echo $_smarty_tpl->tpl_vars['v']->value['create_time'];?>
</td>
        <td><a href="javascript:;" onclick="edit_huanfen(<?php echo $_smarty_tpl->tpl_vars['v']->value['qbm_id'];?>
);">修改</a></td>
        </tr>
        <?php } ?>
    <?php }?>
    <?php if ($_smarty_tpl->tpl_vars['list']->value&&!$_smarty_tpl->tpl_vars['managelist']->value) {?>
    <tr><td colspan="6"><input type="button" onclick="huanfen(<?php echo $_smarty_tpl->tpl_vars['nq_id']->value;?>
,<?php echo $_smarty_tpl->tpl_vars['subject_id']->value;?>
);" class="button" value="还分" /> </td></tr>
    <?php }?>
</table>
<script>
//后台还分操作，网点的某个题目
function huanfen(nq_id,subject_id){
    $.layer({
        type: 2, 
        title: false,
        closeBtn: [1, true],
        shadeClose: true,
        offset: ['50px', ''],
        area: ['500px', '215px'],
        iframe: {src: '/webadmin/netQuestion/huanfen?nq_id='+nq_id+'&subject_id='+subject_id}
    });
}
//修改后台用户已经操作的还分操作
function edit_huanfen(qbm_id){
    $.layer({
        type: 2, 
        title: false,
        closeBtn: [1, true],
        shadeClose: true,
        offset: ['50px', ''],
        area: ['500px', '215px'],
        iframe: {src: '/webadmin/netQuestion/huanfen?qbm_id='+qbm_id}
    });
}
</script>
<?php echo $_smarty_tpl->getSubTemplate ("../common/footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
<?php }} ?>
